package com.mall.order.entity.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@Schema(description = "订单信息")
public class OrderVO {
    @Schema(description = "订单ID")
    private String orderId;

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "订单总金额")
    private BigDecimal totalAmount;

    @Schema(description = "订单状态：0-待支付，1-已支付，2-已取消，3-已完成")
    private Integer status;

    @Schema(description = "订单创建时间")
    private LocalDateTime createTime;

    @Schema(description = "支付时间")
    private LocalDateTime payTime;

    @Schema(description = "订单详情列表")
    private List<OrderDetailVO> details;
}